<!doctype html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no,shrink-to-fit=no">
  <title>{$info[0]['title']}</title>
  <meta name="keywords" content="{$info[0]['key']}">
  <meta name="description" content="{$info[0]['des']}">
  {css href="__INDEXCSS__/bootstrap.min.css"}
  {css href="__INDEXCSS__/app.css"}
  {js href="__TOJS__/jquery.slim.min.js"}
  {js href="__TOJS__/bootstrap.min.js"}
  <style>
    .box-no{
      display: none;
    }
  </style>
</head>
<body>
<div class="container">
  <h2 class="text-center">{$info[0]['title']}</h2>
  <div class="card text-center">
    <h5 class="card-header"> 第<strong>{$kjdata[0]['issue']+1}</strong>期 距下期：<span id="time"></span> 秒 </h5>
    <div class="card-body head">
      <h6 class="{$kjdata['math']['ds']=='0'?'card-title box-no':'card-title'}" >大双未开：<strong>{$kjdata['math']['ds']}</strong> 期</h6>
      <h6 class="{$kjdata['math']['dd']=='0'?'card-title box-no':'card-title'}" >大单未开：<strong>{$kjdata['math']['dd']}</strong> 期</h6>
      <h6 class="{$kjdata['math']['xs']=='0'?'card-title box-no':'card-title'}" >小双未开：<strong>{$kjdata['math']['xs']}</strong> 期</h6>
      <h6 class="{$kjdata['math']['xd']=='0'?'card-title box-no':'card-title'}" >小单未开：<strong>{$kjdata['math']['xd']}</strong> 期</h6>
      {volist name="adv" key="k" id="vo" offset="0"}
      {if $vo['position'] == '顶部图片' and $vo['is_img'] == '是'}
      <p style="margin-bottom:1px;" id="text02"><a rel="nofollow" href="{$vo['url']}"><img style="width:100%" src="{$vo['img']}"></a></p>
      {/if}
      {/volist}
    </div>
    <div class="card-footer text-muted">
      <span class="label bg-primary" >{$kjdata[0]['c1']}</span> +
      <span class="label bg-primary">{$kjdata[0]['c2']}</span> +
      <span class="label bg-primary">{$kjdata[0]['c3']} </span> =
      <span class="label bg-danger">{$kjdata[0]['c4']}</span> -
      <span class="{$dx=='小'?'label bg-primary':'label bg-danger'}">{$dx}</span>
      <span class="{$ds=='单'?'label bg-primary':'label bg-danger'}">{$ds}</span>
    </div>
  </div>
  <div class="card text-center">
    <div class="card-body action">
      <a href="{:url('/index',array('kjtype'=>2,'type'=>$type,'i'=>$i))}" title="飞飞台湾28预测" class="{$kjtype == '2' ? 'btn btn-primary btn-sm' : 'btn btn-outline-primary btn-sm'}">台湾28</a>
      <a href="{:url('/index',array('kjtype'=>1,'type'=>$type,'i'=>$i))}" title="飞飞加拿大28预测" class="{$kjtype == '1' ? 'btn btn-primary btn-sm' : 'btn btn-outline-primary btn-sm'}">加拿大28</a>
      <a href="{:url('/index',array('kjtype'=>3,'type'=>$type,'i'=>$i))}" title="飞飞澳洲28预测" class="{$kjtype == '3' ? 'btn btn-primary btn-sm' : 'btn btn-outline-primary btn-sm'}">澳洲28</a>
      <p style="margin-top: -10px;"></p>
      {volist name="adv" key="k" id="vo" offset="0"}
      {if $vo['position'] == '开奖栏(文字)' and $vo['is_img'] == '否'}
      <a href="{$vo['url']}" title="{$vo['text']}" class="btn btn-outline-primary btn-sm">{$vo['text']}</a>
      {/if}
      {/volist}
      <p style="margin-top: -10px;"></p>
      <a href="{:url('/index',array('i'=>$i,'kjtype'=>$kjtype,'type'=>1))}" class="{$type == 1 ? 'btn btn-primary btn-sm' : 'btn btn-outline-primary btn-sm'}">组合</a>
      <a href="{:url('/index',array('i'=>$i,'kjtype'=>$kjtype,'type'=>2))}" class="{$type == 2 ? 'btn btn-primary btn-sm' : 'btn btn-outline-primary btn-sm'}">杀组</a>
      <a href="{:url('/index',array('i'=>$i,'kjtype'=>$kjtype,'type'=>3))}" class="{$type == 3 ? 'btn btn-primary btn-sm' : 'btn btn-outline-primary btn-sm'}">杀尾</a>
      <p style="margin-top: -10px;"></p>
      <a href="{:url('/index',array('i'=>$i,'kjtype'=>$kjtype,'type'=>4))}" class="{$type == 4 ? 'btn btn-primary btn-sm' : 'btn btn-outline-primary btn-sm'}">龙虎</a>
      <a href="{:url('/index',array('i'=>$i,'kjtype'=>$kjtype,'type'=>5))}" class="{$type == 5 ? 'btn btn-primary btn-sm' : 'btn btn-outline-primary btn-sm'}">四余</a>
      <a href="{:url('/index',array('i'=>$i,'kjtype'=>$kjtype,'type'=>6))}" class="{$type == 6 ? 'btn btn-primary btn-sm' : 'btn btn-outline-primary btn-sm'}">中边</a>
      <p style="margin-top: -10px;"></p>
      {volist name="alg" key="k" id="vo" offset="0"}
      {if $k%3 == 1}
            <p style="margin-top: -10px;"></p>
      {/if}
         <a href="{:url('/index',array('i'=>$k,'kjtype'=>$kjtype,'type'=>$type))}" class="{$i == $k ? 'btn btn-primary btn-sm' : 'btn btn-outline-primary btn-sm'}">{$vo['name']}</a>
      {/volist}
      <p style="margin-top: -10px;"></p>
      {volist name="adv" key="k" id="vo" offset="0"}
      {if $vo['position'] == '算法栏(文字)' and $vo['is_img'] == '否'}
      <a href="{$vo['url']}" title="{$vo['text']}" class="btn btn-outline-primary btn-sm">{$vo['text']}</a>
      {/if}
      {/volist}
    </div>
    <div class="card-footer text-muted">
      100期 正确：{$zq}期 错误：{$cw}期 正确率：{$zq}%
    </div>
    {volist name="adv" key="k" id="vo" offset="0"}
    {if $vo['position'] == '顶部文字' and $vo['is_img'] == '否'}
    <a href="{$vo['url']}" rel="nofollow" title="{$vo['text']}" class="btn btn-outline-primary btn-sm p1">{$vo.text|raw}</a>
    {/if}
    {/volist}
  </div>
  <table class="table text-center table-striped">
    <thead>
    <tr>
      <th>期号</th>
      <th>开奖内容</th>
      <th>预测</th>
      <th>结果</th>
    </tr>
    </thead>
    <tbody>
    <tr>
      <td>{$kjdata[0]['issue']+1}</td>
      <td></td>
      <td>
        {if $type == 1}
        <span class="label2 badge-danger">{:str_split($yc[0],3)[0]}</span><span class="label2 badge-danger">{:str_split($yc[0],3)[1]}</span>
        {else/}
        <span class="label2 badge-danger">{$yc[0]}</span>
        {/if}
      </td>
      <td></td>
    </tr>
    {volist name="yc" key="k" id="vo" offset="1"}
    <tr>
      <td>{$kjdata[$k-1]['issue']}</td>
      <td><span class="badge badge-danger">{$kjdata[$k-1]['c1']}</span> <span class="badge badge-danger">{$kjdata[$k-1]['c2']}</span> <span class="badge badge-danger">{$kjdata[$k-1]['c3']}</span> <span class="label2 badge-primary">{$kjdata[$k-1]['c4']}</span></td>
      <td>
        {if $type == 1}
        <span class="{$dc[$k-1] == '1' || $dc[$k-1] == '3' ? 'label2 badge-danger' : 'label2 badge-primary'}">{:str_split($vo,3)[0]}</span><span class="{$dc[$k-1] == '2' || $dc[$k-1] == '1' ? 'label2 badge-danger' : 'label2 badge-primary'}">{:str_split($vo,3)[1]}</span>
        {else/}
        <span class="{$dc[$k-1] == '1' ? 'label2 badge-danger' : 'label2 badge-primary'}">{$vo}</span>
        {/if}
      </td>
      <td><span class="{$dc[$k-1] == '0' ? 'label2 badge-primary' : 'label2 badge-danger'}">{$dc[$k-1] == '0' ? '错' : '对'}</span></td>
    </tr>
    {/volist}
    </tbody>
  </table>
  <footer class="my-5 pt-5 text-muted text-center text-small">
    <ul class="list-inline">
      {volist name="adv" key="k" id="vo" offset="0"}
      {if $vo['position'] == '底部' and $vo['is_img'] == '否'}
      <li class="list-inline-item">{$vo['text']|raw}</li>
      {/if}
      {/volist}
    </ul>
  </footer>
</div>
{volist name="adv" key="k" id="vo" offset="0"}
{if $vo['position'] == '浮动' and $vo['is_img'] == '是'}
<a class="touZhu" href="{$vo['url']}" target="_blank"><img alt="" src="{$vo['img']}" style="display: block;position: fixed;top: 480px;right: 20px;width: 60px;height: 60px;"></a>
{/if}
{/volist}
<script >

  var cTime= {$kjdata['countDown']} ;

  getTime();
  function getTime(){
    cTime = cTime-1;
    if(cTime<0){
      $("#time").html("开奖中");
      if(cTime % 10==0 && cTime>-300){
        window.location.reload();
      }
    }else{
      $("#time").html(cTime);
    }
    myCountdown = setTimeout(function () {
      getTime();
    }, 1000);

  }
</script>

</body>
</html>